//package com.springboot.demo.event;
//
//import org.springframework.context.ApplicationListener;
//import org.springframework.scheduling.annotation.Async;
//import org.springframework.stereotype.Component;
//
//@Component
//public class RegisterApplicationListener implements ApplicationListener<UserRegisterEvent> {
//    @Override
//    @Async
//    public void onApplicationEvent(UserRegisterEvent userRegisterEvent) {
//        System.out.println("注册监听器的方法被调用");
//        Integer password = userRegisterEvent.getUser().getPassword();
//        System.out.println(password);
//    }
//}
